package com.glls.stock.controller;

import com.glls.common.vo.OrderVo;
import com.glls.stock.service.StockService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public class StockController {

    @Resource
    private StockService stockService;

    @PostMapping("/updateStock")
    public int updateStock(@RequestBody OrderVo order){
        return stockService.updateStock(order);
    }


}
